<script>
    {% if toast %}
       CaMessage("{{toast.msg}}","{{toast.type}}")
    {% endif %}
</script>